<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
	<title>Login</title>
</h:head>
<h:body>
	<h:form>
			<div id="spaziatura">
			<full_page id="main">
			<!-- 		HEADER -->
				<div>
					<img src="http://localhost:8080/TravelDreamWEB/resources/Images/Banner.png" id="bannerTop"></img>
				</div>
			<!-- 		HEADER -->
			<div>
						<img src="http://localhost:8080/TravelDreamWEB/resources/Images/Banner_piccolo.png" id="bannerBottom_sx"></img>
			</div>

			<div>
						<img src="http://localhost:8080/TravelDreamWEB/resources/Images/Logo_td_big.png" id="logoTD"></img>
			</div>

			<div>
						<img src="http://localhost:8080/TravelDreamWEB/resources/Images/Banner_piccolo_dx.png" id="bannerBottom_dx"></img>
			</div>
			
			<div>
						<img src="http://localhost:8080/TravelDreamWEB/resources/Images/Bg.png" id="background"></img>
			</div>
			
			<div>
						<img src="http://localhost:8080/TravelDreamWEB/resources/Images/usersil.png" id="minilogo_user"></img>
			</div>

		<!--TITOLO E SOTTOTITOLO-->
		<title_box>
		<title_TD>TravelDream</title_TD>
		</title_box>
		<!--FINE TITOLO E SOTTOTITOLO-->

			<full_page id="menuTop_con_banner">
			<p:growl id="growl" showDetail="true" sticky="true" />
			<h:panelGrid columns="2" id="regGrid">
			
				<yellow_text><underLined>Email:</underLined></yellow_text>
				<p:inputText id="email" value="#{registerBean.user.email}" />
				

				<yellow_text><underLined>First name:</underLined></yellow_text>
				<p:inputText id="firstName" value="#{registerBean.user.firstName}" />
				

				<yellow_text><underLined>Last name:</underLined></yellow_text>
				<p:inputText id="lastName" value="#{registerBean.user.lastName}" />
				

				<yellow_text><underLined>Password:</underLined></yellow_text>
				<p:password id="password" value="#{registerBean.user.password}"
					feedback="true" match="pwd2" label="Password"/>
			

				<yellow_text><underLined>Confirm Password:</underLined></yellow_text>
				<p:password id="pwd2" label="Confirm Password" value="#{registerBean.user.password}"/>
			</h:panelGrid>
			
			<button_selector id="regButton"><yellow_text id="regSubmit" >Click here to register! --></yellow_text><p:commandButton value="Register" update="regGrid, growl"
				action="#{registerBean.register()}" /></button_selector>
		
	
			</full_page>
			<box_login>
				<yellow_text id="topRightReg">Registration Form</yellow_text>
      		</box_login>
	
	</full_page>
	</div>	
	</h:form>
	<h:outputStylesheet library="css" name="css_rules.css" />
</h:body>
</html>